<!DOCTYPE html>
<html ng-app="test">
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript" src="js/angular.js" ></script>
	</head>
	<body>
		<!--在controller中也可以放置js原生的代码-->
		<script>
			var app=angular.module('test',[]);
			app.controller('count1',function($scope){
				$scope.alert=function(s){
					window.alert(s);
				}
			})
			
		</script>
		<div ng-controller="count1" >
			<input type="text" ng-model="str" />
			<input type="button" value="点击" ng-click="alert(str)" />
			
		</div>
	</body>
</html>
